/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/*
 * CPainelTabBd.java
 *
 * Created on 31/10/2010, 20:38:39
 */

package rpt.bd.cenario;

import java.awt.Component;
import java.sql.ResultSet;

/**
 *
 * @author Roberto
 */
public class CPainelTabBd extends javax.swing.JPanel {

    /** Creates new form CPainelTabBd */
    public CPainelTabBd() {
        initComponents();
    }

    /** This method is called from within the constructor to
     * initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is
     * always regenerated by the Form Editor.
     */
    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        jTabbedPane1 = new javax.swing.JTabbedPane();

        setLayout(new java.awt.BorderLayout());
        add(jTabbedPane1, java.awt.BorderLayout.CENTER);
    }// </editor-fold>//GEN-END:initComponents


    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.JTabbedPane jTabbedPane1;
    // End of variables declaration//GEN-END:variables

    public void adicionar(Component aComponente) {
        add(aComponente);
    }

    public String getSentencaSQL() {
        return null;
    }

    class CProcessamentoBdPainelTab extends CProcessamentoBd {

        public CProcessamentoBdPainelTab (CGlobal aGlobal) {
            super(aGlobal);
        }

        @Override
        public String getQuery() {
            String vQuery = getQueryTab();
            return vQuery;
        }

        @Override
        public int executar(){
            return carregarTab(fRs);
        }
    }

    public String getQueryTab() {
        return null;
    }

    public int carregarTab(ResultSet aRs) {
        return 0;
    }
}
